import { createRouter, createWebHistory  } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router';
const routes:Array<RouteRecordRaw> = [
    {
      path:'/',
      redirect:'/home'
    },
    {
        path:'/home',
        name:'home',
        component:()=>import('../views/home.vue')
    }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router